<!DOCTYPE html>
<html lang="en">
  <head>
    <?php echo Yaf_View_Simple::render('header.phtml'); ?>
  </head>
  <body>
    <?php echo Yaf_View_Simple::render('nav.phtml'); ?>
    <div class="container">
      <div class="col-lg-2">
        <div class="list-group" id="member-menu" >
          <?php foreach($menu as $value) { ?>
          <a href="<?php echo $value['link'].'?id='.$info['id'];?>" class="list-group-item"><?php echo $value['title']; ?></a>
          <?php } ?>
        </div>
      </div> <!-- /.col-lg-12 -->
      <div class="col-lg-10">
        <div class="page-header" >
          <?php echo $info['name']; ?>
        </div>
        <div class="member-content" >
          <form class="form-horizontal" method="post" action="change">
            <input type="hidden" name="id" value="<?php echo $info['id']; ?>">
            <div class="form-group">
              <label for="sub_name" class="col-sm-2 control-label">Sub-Name:</label>
              <div class="col-sm-10">
                <input type="text" name="sub_name" class="form-control" id="sub_name" value="<?php echo $info['sub_name']; ?>">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">Sex:</label>
              <div class="col-sm-10">
                <div class="radio">
                  <label>
                    <input type="radio" name="sex" value="1" <?php if($info['sex'] == 1){ echo "checked"; } ?>>
                    Men
                  </label>
                  <label>
                    <input type="radio" name="sex" value="2"  <?php if($info['sex'] == 2){ echo "checked"; } ?>>
                    Women
                  </label>

                  <label>
                    <input type="radio" name="sex" value="3"  <?php if($info['sex'] == 3){ echo "checked"; } ?>>
                    Secrecy:
                  </label>
                </div>
              </div>
            </div>
            <hr>
            <div class="form-group">
              <label class="col-lg-2" ></label>
              <div class="col-sm-10">
                
                <button type="submit" class="btn btn-primary pull-right" >Sure</button>
              </div>
            </div>
          </form>
          <?php if(isset($flag)){ ?>
          <?php if(false == $flag){ ?>
          <div class="alert alert-warning" >Error</div>
          <?php }else{ ?>
          <div class="alert alert-success" >Success</div>
          <?php }} ?>
        </div>
      </div>
    </div> <!-- /.container -->
    <footer class="footer">
      <?php echo Yaf_View_Simple::render('footer.phtml'); ?>
    </footer> <!-- /.footer -->
  </body>
</html>
